package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/4.
 */
public class SoftItemQuery  extends PageQueryParam {

    private Integer softItemId;

    private Integer softId;

    private String itemName;

    private String versionName;

    private Integer state;

    private String packageName;

    private Integer safeState;

    private Integer softSrc;

    private Integer isAccredit;

    private Integer payType;

    private String checkAdminName;

    private Date publishs;

    private Date publishe;

    private String publishDateRange;

    private Integer checkAdminId;

    private Integer categoryId;//分类id

    private Integer categoryId2;

    private Integer categoryId3;

    private Integer categoryParentId;//分类父id


    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSoftItemId() {
        return softItemId;
    }

    public void setSoftItemId(Integer softItemId) {
        this.softItemId = softItemId;
    }

    public Integer getSoftId() {
        return softId;
    }

    public void setSoftId(Integer softId) {
        this.softId = softId;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Integer getSafeState() {
        return safeState;
    }

    public void setSafeState(Integer safeState) {
        this.safeState = safeState;
    }

    public Integer getSoftSrc() {
        return softSrc;
    }

    public void setSoftSrc(Integer softSrc) {
        this.softSrc = softSrc;
    }

    public Integer getIsAccredit() {
        return isAccredit;
    }

    public void setIsAccredit(Integer isAccredit) {
        this.isAccredit = isAccredit;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }


    public Date getPublishs() {
        return publishs;
    }

    public void setPublishs(Date publishs) {
        this.publishs = publishs;
    }

    public Date getPublishe() {
        return publishe;
    }

    public void setPublishe(Date publishe) {
        this.publishe = publishe;
    }

    public Integer getCheckAdminId() {
        return checkAdminId;
    }

    public void setCheckAdminId(Integer checkAdminId) {
        this.checkAdminId = checkAdminId;
    }

    public String getCheckAdminName() {
        return checkAdminName;
    }

    public void setCheckAdminName(String checkAdminName) {
        this.checkAdminName = checkAdminName;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getCategoryParentId() {
        return categoryParentId;
    }

    public void setCategoryParentId(Integer categoryParentId) {
        this.categoryParentId = categoryParentId;
    }

    public String getPublishDateRange() {
        return publishDateRange;
    }

    public void setPublishDateRange(String publishDateRange) {
        this.publishDateRange = publishDateRange;
        if (publishDateRange != null && publishDateRange!="") {
            this.setPublishs(DateUtil.getBeginDateFromRange(publishDateRange));
            this.setPublishe(DateUtil.getEndDateFromRage(publishDateRange));
        }
    }

    public Integer getCategoryId3() {
        return categoryId3;
    }

    public void setCategoryId3(Integer categoryId3) {
        this.categoryId3 = categoryId3;
    }

    public Integer getCategoryId2() {
        return categoryId2;
    }

    public void setCategoryId2(Integer categoryId2) {
        this.categoryId2 = categoryId2;
    }
}
